chore: skeleton for web create file provide
This commit is contained in:
@ -1,3 +1,21 @@
|
||||
import { systemIOMachine } from '@src/machines/systemIO/systemIOMachine'
|
||||
import type { SystemIOContext } from '@src/machines/systemIO/utils'
|
||||
import { SystemIOMachineActors } from '@src/machines/systemIO/utils'
|
||||
import { fromPromise } from 'xstate'
|
||||
|
||||
export const systemIOMachineWeb = systemIOMachine.provide({})
|
||||
export const systemIOMachineWeb = systemIOMachine.provide({
|
||||
actors: {
|
||||
[SystemIOMachineActors.createKCLFile]: fromPromise(
|
||||
async ({
|
||||
input,
|
||||
}: {
|
||||
input: {
|
||||
context: SystemIOContext
|
||||
requestedProjectName: string
|
||||
requestedFileName: string
|
||||
requestedCode: string
|
||||
}
|
||||
}) => {}
|
||||
),
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user