@types/simpl-schema 1.12.0 → 1.12.3
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 +4 -3
- 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: Tue,
|
11
|
+
* Last updated: Tue, 13 Sep 2022 01:37:42 GMT
|
12
12
|
* Dependencies: [@types/meteor](https://npmjs.com/package/@types/meteor)
|
13
13
|
* Global values: none
|
14
14
|
|
simpl-schema/index.d.ts
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
// Rafa Horo <https://github.com/rafahoro>
|
8
8
|
// Stepan Yurtsiv <https://github.com/yurtsiv>
|
9
9
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
10
|
-
// Minimum TypeScript Version:
|
10
|
+
// Minimum TypeScript Version: 4.1
|
11
11
|
|
12
12
|
import { check } from 'meteor/check';
|
13
13
|
|
@@ -99,6 +99,7 @@ export interface SchemaDefinition {
|
|
99
99
|
type: any;
|
100
100
|
label?: string | (() => string) | undefined;
|
101
101
|
optional?: boolean | (() => boolean) | undefined;
|
102
|
+
required?: boolean | (() => boolean) | undefined;
|
102
103
|
min?: number | boolean | Date | (() => number | boolean | Date) | undefined;
|
103
104
|
max?: number | boolean | Date | (() => number | boolean | Date) | undefined;
|
104
105
|
minCount?: number | (() => number) | undefined;
|
@@ -186,8 +187,7 @@ export class SimpleSchema {
|
|
186
187
|
omit(...fields: string[]): SimpleSchema;
|
187
188
|
static oneOf(...types: Array<(RegExp | SchemaDefinition | BooleanConstructor | StringConstructor | NumberConstructor | DateConstructor | ArrayConstructor | IntegerSchema)>): SimpleSchema;
|
188
189
|
clean(doc: any, options?: CleanOption): any;
|
189
|
-
schema(key
|
190
|
-
schema(): SchemaDefinition[];
|
190
|
+
schema(key?: string): SchemaDefinition;
|
191
191
|
getDefinition(key: string, propList?: any, functionContext?: any): any;
|
192
192
|
get(key: string, prop: string): any;
|
193
193
|
keyIsInBlackBox(key: string): boolean;
|
@@ -237,6 +237,7 @@ export class SimpleSchema {
|
|
237
237
|
KEY_NOT_IN_SCHEMA: string;
|
238
238
|
};
|
239
239
|
static setDefaultMessages(messages: {messages: SimpleSchemaMessagesDict}): void;
|
240
|
+
getObjectSchema(key: string): typeof SimpleSchema | undefined;
|
240
241
|
}
|
241
242
|
|
242
243
|
interface ValidationOption {
|
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.3",
|
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": "
|
50
|
+
"typesPublisherContentHash": "37e600a22b8b91cd4ee4fd48a811b3b6d806ae8e708a476b8eac85e1e9eeb86c",
|
51
|
+
"typeScriptVersion": "4.1"
|
52
52
|
}
|