@we-mobius/type-check
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Type Check

Getting Started

Install as development dependencies:

pnpm add -D @we-mobius/type-check

Create a script named type-check.{ts|js} for example, and put it in some folder like scripts in your project root directory, with the following content:

import { resolve } from 'node:path'
import { cwd } from 'node:process'

import { checkFile } from '../src/index'

checkFile(resolve(cwd(), './src/index.ts'))

Add the corresponding type-check script to your package.json, here I use TypeScript to write my type-check script and run it with tsx, so my script in package.json seems:

{
  "scripts": {
    "type-check": "pnpm exec tsx ./scripts/type-check.ts"
  }
}

Done, here we go, run pnpm exec type-check to check your types.

References

Package Sidebar

Install

npm i @we-mobius/type-check

Weekly Downloads

0

Version

0.0.4

License

GPL-3.0

Unpacked Size

76.8 kB

Total Files

8

Last publish

Collaborators

  • cigaret