JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q67328F
  • License MIT

Lightweight TypeScript types utilities

Package Exports

  • @alessiofrittoli/type-utils
  • @alessiofrittoli/type-utils/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@alessiofrittoli/type-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Type Utils ❇️

Version 0.1.1

Lightweight TypeScript types utilities

Table of Contents


Getting started

Run the following command to start using type-utils in your projects:

npm i -D @alessiofrittoli/type-utils

or using pnpm

pnpm i -D @alessiofrittoli/type-utils

This tiny library defines some global types which are not imported in your IDE by default.
After installation a postinstall scritp is executed to create the type-utils.d.ts file at the root of your project. Please make sure to add it in the array of the "include" property in your tsconfig.json.

{
    "compilerOptions": {
        ...
    },
    "include": [ ..., "type-utils.d.ts" ],
}

You can skip this process if *.ts is already in your "include" array.

⚠️ If the type-utils.d.ts file creation fails you run the following command to manually execute the script:

node node_modules/@alessiofrittoli/type-utils/scripts/postinstall/index.js

ESLint

warnings / errors check.

pnpm lint

Security

If you believe you have found a security vulnerability, we encourage you to responsibly disclose this and NOT open a public issue. We will investigate all legitimate reports. Email security@alessiofrittoli.it to disclose any security vulnerabilities.

Made with ☕

Alessio Frittoli
https://alessiofrittoli.it | info@alessiofrittoli.it