2018-08-23 10:52:48 -07:00
|
|
|
declare module 'superstruct' {
|
2019-05-31 07:42:41 -07:00
|
|
|
declare type StructFunc = {
|
|
|
|
(any): any,
|
2020-08-06 08:47:22 -07:00
|
|
|
object(schema: any): any;
|
2019-05-31 07:42:41 -07:00
|
|
|
union(schema: any): any;
|
2019-12-19 09:18:36 -08:00
|
|
|
array(schema: any): any;
|
2019-05-31 07:42:41 -07:00
|
|
|
literal(schema: any): any;
|
2019-11-12 08:21:19 -08:00
|
|
|
tuple(schema: any): any;
|
2020-04-04 06:35:08 -07:00
|
|
|
pick(schema: any): any;
|
2020-07-17 08:16:44 -07:00
|
|
|
record(schema: any): any;
|
2019-05-31 07:42:41 -07:00
|
|
|
};
|
|
|
|
|
2018-08-23 10:52:48 -07:00
|
|
|
declare module.exports: {
|
2019-05-31 07:42:41 -07:00
|
|
|
struct: StructFunc;
|
2018-08-23 10:52:48 -07:00
|
|
|
}
|
|
|
|
}
|