0.0.8 • Published 1 year ago

@nguyenbinhson/js-common-data-structures v0.0.8

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

Type checking and transpiling

Using Babel’s preset-typescript to generate JS files, and then using TypeScript to do type checking and .d.ts file generation.

// packages.json
    "@babel/cli": "^7.24.7",
    "@babel/core": "^7.24.7",
    "@babel/preset-env": "^7.24.7",
    "@babel/preset-typescript": "^7.24.7",
  "compilerOptions": {
    ...,
    // Ensure that .d.ts files are created by tsc
    "declaration": true,
    // not generate .js files
    "emitDeclarationOnly": true,
    // Ensure that Babel can safely transpile files in the TypeScript project
    "isolatedModules": true,
  },
0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago