Giter VIP home page Giter VIP logo

Comments (9)

lincolnthree avatar lincolnthree commented on August 23, 2024 2

This is still a problem in TS 3.7 with latest version of FDE.

from fast-deep-equal.

epoberezkin avatar epoberezkin commented on August 23, 2024

What typescript version? Why does it pass the test then I wonder...

from fast-deep-equal.

milesj avatar milesj commented on August 23, 2024

Was using 2.7.*

from fast-deep-equal.

cwayfinder avatar cwayfinder commented on August 23, 2024

Currently, I'm having such an error

ERROR in ../node_modules/fast-deep-equal/es6/index.d.ts:1:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.

when importing this way

import * as equal from 'fast-deep-equal/es6';

Typescript 3.5.3

from fast-deep-equal.

lorenzofox3 avatar lorenzofox3 commented on August 23, 2024

@lincolnthree do you have a workaround to get the compilation done ?

from fast-deep-equal.

lincolnthree avatar lincolnthree commented on August 23, 2024

@lorenzofox3 I copied the code into my project directly. It's just one file :)

from fast-deep-equal.

lincolnthree avatar lincolnthree commented on August 23, 2024

Just remove the unused code for things like React.

from fast-deep-equal.

lorenzofox3 avatar lorenzofox3 commented on August 23, 2024

Thanks. For the record, I think the typing error just occurs when one requires the es6 version:
import equal from 'fast-deep-equal/es6'

from fast-deep-equal.

mokeev1995 avatar mokeev1995 commented on August 23, 2024

I've sent PR with a fix (#48). That should help when it will be delivered in npm registry

from fast-deep-equal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.