@types/simpl-schema 1.12.6 → 1.12.7

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 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: Tue, 07 Nov 2023 15:11:36 GMT
11
+ * Last updated: Mon, 20 Nov 2023 23:36:24 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: ReadonlyArray<SimpleSchemaValidationError>): any;
62
+ addValidationErrors(errors: readonly SimpleSchemaValidationError[]): any;
63
63
  }
64
64
 
65
65
  interface FieldInfo {
@@ -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: ReadonlyArray<string>): void;
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: ReadonlyArray<string>): void;
276
+ removeGenericKeys(keys: readonly string[]): void;
277
277
  removeGenericKey(key: string): void;
278
278
  removeKey(key: string): void;
279
- removeKeys(keys: ReadonlyArray<string>): void;
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.6",
3
+ "version": "1.12.7",
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": "87080bd9ca4fce116cbf4d9e6dde19fc362b9bf9d25ac189bf63893ba361031b",
50
+ "typesPublisherContentHash": "e3e3298b7f6c3a12319337db3b20c46c67d719d864007f7d7d2e18c21b292214",
51
51
  "typeScriptVersion": "4.5"
52
52
  }