mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
replace internal module to namespace
This commit is contained in:
1 parent
2f47c75835
commit
14fe4313f4
1139 files changed
+179639
-179639
No files matched your search
Vendored
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
declare module "node-persist" {
|
||||
type milliseconds = number;
|
||||
module NodePersist {
|
||||
namespace NodePersist {
|
||||
export interface InitOptions {
|
||||
dir?: string;
|
||||
stringify?: (toSerialize: any)=>string;
|
||||
@@ -19,7 +19,7 @@ declare module "node-persist" {
|
||||
interval?: milliseconds|boolean;
|
||||
ttl?: milliseconds|boolean;
|
||||
}
|
||||
export function init(options?: InitOptions, callback?: Function): Q.Promise<any>;
|
||||
export function init(options?: InitOptions, callback?: Function): Q.Promise<any>;
|
||||
export function initSync(options?: InitOptions): void;
|
||||
export function getItem(key: string, callback?: (err: any, value: any)=>any): Q.Promise<any>;
|
||||
export function getItemSync(key: string): any;
|
||||
|
||||
Reference in new issue
Block a user