0.0.10 • Published 11 months ago

typedly v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Typedly

Usage / Configuration

The types in this library can accessed in one of the following methods:

  • Namespace import:

    // index.ts
    import { typedly } from "typedly"
    
    type MyUnion = { a: string, common: boolean } | { b: string, common: boolean }
    export type Usage = typedly.DistributiveOmit<MyUnion, "common">
  • Direct import:

    // index.ts
    import { DistributiveOmit } from "typedly/dist/typedly"
    
    type MyUnion = { a: string, common: boolean } | { b: string, common: boolean }
    export type Usage = DistributiveOmit<MyUnion, "common">
  • Injecting the types globally using tsconfig.json:

    • Injecting the types globally using tsconfig.json:
    // tsconfig.json
    {
    	"types": ["typedly/dist/global.d.ts"]
    }
    // index.ts
    type MyUnion = { a: string, common: boolean } | { b: string, common: boolean }
    export type Usage = DistributiveOmit<MyUnion, "common">
0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.5

2 years ago

0.0.6

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago