@types/simpl-schema 1.12.6 → 1.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- simpl-schema/README.md +1 -1
- simpl-schema/index.d.ts +5 -5
- simpl-schema/package.json +3 -3
simpl-schema/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for simpl-schema (https://github.com/alde
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simpl-schema.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 10 May 2024 20:35:45 GMT
|
12
12
|
* Dependencies: [@types/meteor](https://npmjs.com/package/@types/meteor)
|
13
13
|
|
14
14
|
# Credits
|
simpl-schema/index.d.ts
CHANGED
@@ -59,7 +59,7 @@ interface CustomValidationContext {
|
|
59
59
|
* return the error type string. If you do use this to add an error for the
|
60
60
|
* current key, return false from your custom validation function.
|
61
61
|
*/
|
62
|
-
addValidationErrors(errors:
|
62
|
+
addValidationErrors(errors: readonly SimpleSchemaValidationError[]): any;
|
63
63
|
}
|
64
64
|
|
65
65
|
interface FieldInfo {
|
@@ -167,7 +167,7 @@ interface SimpleSchemaMessageType {
|
|
167
167
|
type SimpleSchemaMessagesDict = Record<string, SimpleSchemaMessageType>;
|
168
168
|
|
169
169
|
export class SimpleSchema {
|
170
|
-
constructor(schema: SimpleSchemaDefinition, options?: SimpleSchemaOptions);
|
170
|
+
constructor(schema: SimpleSchemaDefinition | SimpleSchema, options?: SimpleSchemaOptions);
|
171
171
|
namedContext(name?: string): SimpleSchemaValidationContextStatic;
|
172
172
|
static isSimpleSchema(obj: any): boolean;
|
173
173
|
static addValidator(validator: Validator): void;
|
@@ -205,7 +205,7 @@ export class SimpleSchema {
|
|
205
205
|
static validate(obj: any, schema: SimpleSchema, options?: ValidationOption): void;
|
206
206
|
validator(options?: ValidatorOption): (obj: any) => boolean;
|
207
207
|
extend(otherSchema: SimpleSchema | SimpleSchemaDefinition): SimpleSchema;
|
208
|
-
static extendOptions(options:
|
208
|
+
static extendOptions(options: readonly string[]): void;
|
209
209
|
static RegEx: {
|
210
210
|
Email: RegExp;
|
211
211
|
EmailWithTLD: RegExp;
|
@@ -273,10 +273,10 @@ interface MongoObjectStatic {
|
|
273
273
|
getPositionsForGenericKey(key: string): string[];
|
274
274
|
getValueForKey(key: string): any;
|
275
275
|
addKey(key: string, val: any, op: string): any;
|
276
|
-
removeGenericKeys(keys:
|
276
|
+
removeGenericKeys(keys: readonly string[]): void;
|
277
277
|
removeGenericKey(key: string): void;
|
278
278
|
removeKey(key: string): void;
|
279
|
-
removeKeys(keys:
|
279
|
+
removeKeys(keys: readonly string[]): void;
|
280
280
|
filterGenericKeys(test: () => boolean): void;
|
281
281
|
setValueForKey(key: string, val: any): void;
|
282
282
|
setValueForGenericKey(key: string, val: any): void;
|
simpl-schema/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/simpl-schema",
|
3
|
-
"version": "1.12.
|
3
|
+
"version": "1.12.8",
|
4
4
|
"description": "TypeScript definitions for simpl-schema",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simpl-schema",
|
6
6
|
"license": "MIT",
|
@@ -47,6 +47,6 @@
|
|
47
47
|
"dependencies": {
|
48
48
|
"@types/meteor": "*"
|
49
49
|
},
|
50
|
-
"typesPublisherContentHash": "
|
51
|
-
"typeScriptVersion": "4.
|
50
|
+
"typesPublisherContentHash": "def7710e199f371afe3a990e61843c9ec4bdeeaa0b643490aa7226ae9b81b032",
|
51
|
+
"typeScriptVersion": "4.7"
|
52
52
|
}
|