Comparing version 1.1.2 to 1.1.3
@@ -31,4 +31,5 @@ import { ICollection, IMonkManager } from "monk"; | ||
export { ObjectID }; | ||
export declare function idify(str?: null): null; | ||
export declare function idify(str: null | undefined): null; | ||
export declare function idify(str: string): ObjectID; | ||
export declare function idify(str: string | null | undefined): ObjectID | null; | ||
export declare class Manager { | ||
@@ -35,0 +36,0 @@ manager: IMonkManager; |
{ | ||
"name": "minimonk", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A tiny wrapper around monk", | ||
@@ -5,0 +5,0 @@ "main": "lib/minimonk.js", |
@@ -47,7 +47,9 @@ import monk, { ICollection, IMonkManager } from "monk"; | ||
export function idify(str?: null): null; | ||
export function idify(str: null | undefined): null; | ||
export function idify(str: string): ObjectID; | ||
export function idify(str?: string | null): ObjectID | null { | ||
export function idify(str: string | null | undefined): ObjectID | null; | ||
export function idify(str: string | null | undefined): ObjectID | null { | ||
return str && ObjectID.isValid(str) | ||
@@ -54,0 +56,0 @@ ? ObjectID.createFromHexString(str) |
17703
433