mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #19475 from untsamphan/meteor-null-objectid
Meteor: allow strictNullChecks, add 2 methods to ObjectID
This commit is contained in:
Vendored
+4
-4
@@ -5,10 +5,10 @@ interface EJSONableCustomType {
|
||||
typeName(): string;
|
||||
}
|
||||
interface EJSONable {
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType;
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType | undefined | null;
|
||||
}
|
||||
interface JSONable {
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[];
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[] | undefined | null;
|
||||
}
|
||||
interface EJSON extends EJSONable { }
|
||||
|
||||
@@ -44,10 +44,10 @@ declare module "meteor/ejson" {
|
||||
typeName(): string;
|
||||
}
|
||||
interface EJSONable {
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType;
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType | undefined | null;
|
||||
}
|
||||
interface JSONable {
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[];
|
||||
[key: string]: number | string | boolean | Object | number[] | string[] | Object[] | undefined | null;
|
||||
}
|
||||
interface EJSON extends EJSONable { }
|
||||
|
||||
|
||||
Vendored
+4
-1
@@ -214,7 +214,10 @@ declare module "meteor/mongo" {
|
||||
interface ObjectIDStatic {
|
||||
new (hexString?: string): ObjectID;
|
||||
}
|
||||
interface ObjectID { }
|
||||
interface ObjectID {
|
||||
toHexString(): string;
|
||||
equals(otherID: ObjectID): boolean;
|
||||
}
|
||||
|
||||
function setConnectionOptions(options: any): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user