1.0.15 • Published 4 years ago

red5seeker7-custom-package v1.0.15

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

To Add A New Type

  1. Navigate to src

  2. Create a folder for the feature that your type most belongs to

    Note: If your new type belongs to a feature that's already in here, navigate to that folder

  3. Inside that folder, create a new file whose name follows the pattern i-<name-of-feature>.ts

    src
    |__ FeatureA
    |   |__ i-feature-a.ts
    |__ FeatureB
        |__ i-feature-b.ts

    Note: The names of these files are not visible when importing the types into another project, so their names don't need to be perfect

  4. In the newly created file, add your new type(s)

    export type MyNewType = {
        prop1: string;
        prop2: number;
        prop3: boolean;
    };

    OR

    export interface MyNewType {
        prop1: string;
        prop2: number;
        prop3: boolean;
    };
  5. Export your new file in src/index.ts

    export * from './FeatureA/i-feature-a';
1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago