1.0.13 • Published 5 years ago

blink-common v1.0.13

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

ts-common-lib

引用方式

在主工程中通过npm安装

npm install --save blink-common

添加引用路径

在主工程的主程序(如:app.ts)顶部添加

///<reference path="../node_modules/blink-common/index.d.ts"/>

添加以上代码的原因如下:

typescript编译器自动生成的d.ts文件中包括了多个module(如下所示),导致在主工程无法通过import * from 'xxx'方式引用,报TS2307: Cannot find module 'xxx'的错误。而添加///<reference path="xxx"/>可解决该问题。

declare module "value/global_function" {
    export {};
    global {
        function delay(millsecond: number): Promise<Function>;
    }
}
declare module "value/sharedpreference_key" {
    export enum SharedKey {
        CurrentProjectID = "current_project_id"
    }
}
1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago