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:
10
src/types/Request.ts
Normal file
10
src/types/Request.ts
Normal 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'
|
||||
Reference in New Issue
Block a user