所以我有
declare module "test" {
declare export type running = number;
}
在一个lib文件中,我想知道如何使用该模块及其真正用途。
如果我尝试以下操作:
async function testMe (testing_stuff /* : test.running */) {
}
It doesn't know what test
is.
But if I don't have it in a module I can just straight up use running
e.g.
declare type pagination = {
page: id,
page_length: id,
};
然后将其用作:
async function testMe (testing_stuff /* : running */) {
}
那么模块在这里的用途是什么?