(environment: Environment, config: Config)
| 24 | type Config = Omit<MutationConfig<deleteSessionMutation>, 'mutation'> |
| 25 | |
| 26 | function deleteSession(environment: Environment, config: Config) { |
| 27 | return commitMutation<deleteSessionMutation>(environment, |
| 28 | { ...config, mutation: deleteSessionQuery }) |
| 29 | } |
| 30 | |
| 31 | export default (app: Express, fetcher: FetcherBase): Express => { |
| 32 | const environment = createEnvironment(fetcher) |