mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
[Convict] get autocomplete for format
This commit is contained in:
Vendored
+15
-1
@@ -37,6 +37,20 @@ declare namespace convict {
|
||||
parse: (content: string) => any;
|
||||
}
|
||||
|
||||
type PredefinedFormat =
|
||||
| '*'
|
||||
| 'int'
|
||||
| 'port'
|
||||
| 'windows_named_pipe'
|
||||
| 'port_or_windows_named_pipe'
|
||||
| 'url'
|
||||
| 'email'
|
||||
| 'ipaddress'
|
||||
| 'duration'
|
||||
| 'timestamp'
|
||||
| 'nat'
|
||||
| String;
|
||||
|
||||
interface SchemaObj<T = any> {
|
||||
default: T;
|
||||
doc?: string;
|
||||
@@ -52,7 +66,7 @@ declare namespace convict {
|
||||
* If omitted, format will be set to the value of Object.prototype.toString.call
|
||||
* for the default value
|
||||
*/
|
||||
format?: string | any[] | ((val: any) => void);
|
||||
format?: PredefinedFormat | any[] | ((val: any) => void);
|
||||
env?: string;
|
||||
arg?: string;
|
||||
sensitive?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user