Consider the following module:
import type { Command, Commander, Options } from "zap";
import { Option, command } from "zap";
const name: string = "single";
const options: Options = {
name: Option.string(),
};
const commander: Commander = async ({ values }) => {
console.log(`single file command for ${values.name}`);
};
export { commander, name, options } satisfies Command;
Of course, the last line is causing a syntax error.
I know I can use export default
like so:
export default { commander, name, options } satisfies Command;
Just wondering if it is possible to do it without default
.