1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-13 09:00:04 +00:00

refactor: improve types and imports

This commit is contained in:
Yury Shkoda
2021-10-14 07:34:08 +00:00
parent 6a34fa1b1d
commit 9cf02b25d0
11 changed files with 10 additions and 291 deletions

10
src/types/Request.ts Normal file
View File

@@ -0,0 +1,10 @@
import { MacroVars } from '@sasjs/utils'
export interface ExecutionQuery {
_program: string
macroVars?: MacroVars
_debug?: boolean
}
export const isRequestQuery = (arg: any): arg is ExecutionQuery =>
arg && !Array.isArray(arg) && typeof arg._program === 'string'