This file contains hidden or 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
| import prettier from "prettier/standalone"; | |
| import path from "path"; | |
| const plugins = [ | |
| require("prettier/parser-graphql"), | |
| require("prettier/parser-babylon") | |
| ]; | |
| const EXTENSION_TO_PARSER = { | |
| ts: "typescript", |
This file contains hidden or 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
| export type ServiceDefinition = { | |
| [x: string]: MethodDefinition; | |
| }; | |
| export type MethodDefinition = { | |
| [x: string]: StringConstructor | NumberConstructor; | |
| }; | |
| export type ServiceObject<T extends ServiceDefinition> = { | |
| [P in keyof T]: ServiceMethod<T[P]> |
OlderNewer