-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conf: add type declarations for all modules (#265)
- Loading branch information
Showing
12 changed files
with
705 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare function any(...args: any[]): boolean; | ||
|
||
export default any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
declare function classNames( | ||
res: Partial<IVestResult>, | ||
classes?: { | ||
valid?: string; | ||
tested?: string; | ||
invalid?: string; | ||
warning?: string; | ||
untested?: string; | ||
} | ||
): (fieldName: string) => string; | ||
|
||
export default classNames; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
interface ExtendedRules { | ||
isAlphanumeric: (...args: any) => IEnforceRules; | ||
isCreditCard: (...args: any) => IEnforceRules; | ||
isCurrency: (...args: any) => IEnforceRules; | ||
isEmail: (...args: any) => IEnforceRules; | ||
isIP: (...args: any) => IEnforceRules; | ||
isIdentityCard: (...args: any) => IEnforceRules; | ||
isJSON: (...args: any) => IEnforceRules; | ||
isLocale: (...args: any) => IEnforceRules; | ||
isMimeType: (...args: any) => IEnforceRules; | ||
isMobilePhone: (...args: any) => IEnforceRules; | ||
isPassportNumber: (...args: any) => IEnforceRules; | ||
isPostalCode: (...args: any) => IEnforceRules; | ||
isURL: (...args: any) => IEnforceRules; | ||
} | ||
|
||
declare function enforceExtended(value: any): EnforceExtendMap<ExtendedRules>; | ||
|
||
export default enforceExtended; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare function any(...args: any[]): boolean; | ||
|
||
export default any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
declare function classNames( | ||
res: Partial<IVestResult>, | ||
classes?: { | ||
valid?: string; | ||
tested?: string; | ||
invalid?: string; | ||
warning?: string; | ||
untested?: string; | ||
} | ||
): (fieldName: string) => string; | ||
|
||
export default classNames; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
interface ExtendedRules { | ||
isAlphanumeric: (...args: any) => IEnforceRules; | ||
isCreditCard: (...args: any) => IEnforceRules; | ||
isCurrency: (...args: any) => IEnforceRules; | ||
isEmail: (...args: any) => IEnforceRules; | ||
isIP: (...args: any) => IEnforceRules; | ||
isIdentityCard: (...args: any) => IEnforceRules; | ||
isJSON: (...args: any) => IEnforceRules; | ||
isLocale: (...args: any) => IEnforceRules; | ||
isMimeType: (...args: any) => IEnforceRules; | ||
isMobilePhone: (...args: any) => IEnforceRules; | ||
isPassportNumber: (...args: any) => IEnforceRules; | ||
isPostalCode: (...args: any) => IEnforceRules; | ||
isURL: (...args: any) => IEnforceRules; | ||
} | ||
|
||
declare function enforceExtended(value: any): EnforceExtendMap<ExtendedRules>; | ||
|
||
export default enforceExtended; |
Oops, something went wrong.