0.0.10 • Published 8 months ago

typedly v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago