blessing-skin-server/resources/assets/tests/ts-shims/net.ts

20 lines
450 B
TypeScript
Raw Normal View History

2019-05-03 09:49:48 +08:00
/* eslint-disable @typescript-eslint/indent */
2019-03-28 16:37:01 +08:00
import * as net from '../../src/scripts/net'
2019-03-17 21:09:46 +08:00
export const init = {} as typeof net.init
export const walkFetch = {} as jest.Mock<
ReturnType<typeof net.walkFetch>,
Parameters<typeof net.walkFetch>
>
export const get = {} as jest.Mock<
ReturnType<typeof net.get>,
Parameters<typeof net.get>
>
export const post = {} as jest.Mock<
ReturnType<typeof net.post>,
Parameters<typeof net.post>
>