mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Added Pass as exported type
This commit is contained in:
@@ -11,6 +11,8 @@ import { removeHidden } from "./utils";
|
||||
const readDir = promisify(_readdir);
|
||||
const readFile = promisify(_readFile);
|
||||
|
||||
export type Pass = InstanceType<typeof Pass>
|
||||
|
||||
export async function createPass(options: FactoryOptions): Promise<Pass> {
|
||||
if (!(options && Object.keys(options).length)) {
|
||||
throw new Error(formatMessage("CP_NO_OPTS"));
|
||||
|
||||
Reference in New Issue
Block a user