digidem / digidem-types Goto Github PK
View Code? Open in Web Editor NEWTypescript type definitions for untyped modules used by Digidem, prior to DefinitelyTyped publishing
Typescript type definitions for untyped modules used by Digidem, prior to DefinitelyTyped publishing
Using Typescript v5.2.2
The instructions currently state that you have to update you tsconfig file as follows:
{
"compilerOptions": {
+ "typeRoots": ["node_modules/@digidem/types/vendor", "node_modules/@types"]
}
}
however, this seems to work:
{
"compilerOptions": {
+ "paths": {
+ "*": ["./node_modules/@digidem/types/vendor/*/index.d.ts"]
+ }
}
}
Example tsconfig I'm using:
{
"compilerOptions": {
"target": "es2022",
"lib": [
"es2023"
],
"module": "nodenext",
"moduleResolution": "nodenext",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"declaration": false,
"typeRoots": [
"node_modules/@types",
"node_modules/@digidem/types/vendor",
]
},
"include": [
"src/**/*",
"tests/**/*"
],
"exclude": [
"node_modules",
]
}
We want to enforce using TypeScript >= 5.1 and DefinitelyTyped has some conventions for doing so.
The module b4a already has good type definitions provided by DefinitelyTyped.
@digidem/types
v2.2.0
typescript
v5.2.2
Cannot find type definition file for '@hyperswarm'.
The file is in the program because:
Entry point for implicit type library '@hyperswarm'
Hypercore accepts a options.keyPair
without a secretKey
prop.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.