mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Improved fn comments and definitions
This commit is contained in:
@@ -109,7 +109,9 @@ export function cloneRecursive<T extends Object>(object: T) {
|
||||
return objectCopy;
|
||||
}
|
||||
|
||||
export function assertUnfrozen(instance: InstanceType<typeof Bundle>) {
|
||||
export function assertUnfrozen(
|
||||
instance: InstanceType<typeof Bundle>,
|
||||
): asserts instance is Bundle & { isFrozen: false } {
|
||||
if (instance.isFrozen) {
|
||||
throw new Error(Messages.BUNDLE.CLOSED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user