Comments (9)
This is still a problem in TS 3.7 with latest version of FDE.
from fast-deep-equal.
What typescript version? Why does it pass the test then I wonder...
from fast-deep-equal.
Was using 2.7.*
from fast-deep-equal.
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.
@lincolnthree do you have a workaround to get the compilation done ?
from fast-deep-equal.
@lorenzofox3 I copied the code into my project directly. It's just one file :)
from fast-deep-equal.
Just remove the unused code for things like React.
from fast-deep-equal.
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.
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)
- <deleted>
- add support Object.create(null) HOT 2
- IE11 is errors!!!! HOT 2
- vite error: ReferenceError: module is not defined HOT 1
- Feature request: ignore undefined values HOT 2
- what is envHasBigInt64Array good for? HOT 1
- envHasBigInt64Array HOT 1
- array/object comparison is not symmetric
- Comparing object with symbols as keys returns true
- Bug: Set compares by reference not value
- Bug: invalid dates are not equal
- toString comparison breaks if object has toString that isn't a function HOT 1
- Update Benchmark for LTS Node Version HOT 2
- use [email protected] in my project, but eslint依赖的fast-deep-equal 报错版本问题
- Is this abandoned? HOT 2
- Support for HTML nodes
- source code question HOT 2
- Add dequal to comparison
- 3.1.3. does not contain the type fixes
- Not able to compare a Map HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-deep-equal.