Skip to content

Commit cfb5ee4

Browse files
committed
add (types)
1 parent 90f211e commit cfb5ee4

File tree

4 files changed

+1482
-9
lines changed

4 files changed

+1482
-9
lines changed

tools/build-dts.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async function process () {
2727
});
2828

2929
File.copyTo('./ts-temp/out/index.d.ts', './lib/mask.d.ts');
30+
File.copyTo('./ts-temp/out/index.d.ts', './types/mask.d.ts');
3031
}
3132

3233
namespace Preprocess {

types/index.d.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
/// <reference path="../lib/mask.d.ts" />
1+
/// <reference path="mask.d.ts" />
2+
3+
// import { Mask } from 'mask';
4+
5+
// declare global {
6+
// const mask: typeof Mask
7+
// }
28

39
import { Mask } from 'mask';
410

5-
declare global {
6-
const mask: typeof Mask
11+
declare module "mask" {
12+
export = Mask;
713
}

0 commit comments

Comments
 (0)