diff --git a/typespec/lib.js b/typespec/lib.js deleted file mode 100644 index 915be6a..0000000 --- a/typespec/lib.js +++ /dev/null @@ -1,8 +0,0 @@ -export const $lib = createTypeSpecLibrary({ - // ... - state: { - customName: { description: "State for the @customName decorator" }, - }, -}); - -export const StateKeys = $lib.stateKeys; diff --git a/typespec/model.js b/typespec/model.js deleted file mode 100644 index 4387394..0000000 --- a/typespec/model.js +++ /dev/null @@ -1,25 +0,0 @@ -// import { StateKeys } from "./lib.js"; - -// // Create a unique key -// const key = StateKeys.customName; -// export function $faker(context, target, name) { -// // Keep a mapping between the target and a value. -// context.program.stateMap(key).set(target, name); - -// // Keep an index of a type. -// context.program.stateSet(key).add(target); -// } -let key = 0; -export function $faker(context, target, name) { - console.log(target.node) - // if (target.model) { - // console.log(name); - // // console.log(context); - // console.log(target.model.properties); - // // context.program.stateMap(key).set(target, name); - // // key += 1; - - // target.type['x-faker'] = name.value; - // console.log('---------------------'); - // } -}