mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
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