magic-helper
Version:
this is magic helper
12 lines (11 loc) • 346 B
text/typescript
import { action } from './action'
import { DEFAULT_TARGET } from '../constant'
import type { OpenDoorConfig } from '../types/index'
export const openDoor = (config: OpenDoorConfig) => {
const { targetUrl, info } = config
return action({
actionType: 'openDoor',
targetUrl: targetUrl || DEFAULT_TARGET,
data: info
})
}