chore: correct typo in jsdoc

This commit is contained in:
Jacob Overgaard
2024-04-18 09:18:14 +02:00
committed by GitHub
parent 658332d7b5
commit fc515ecd68

View File

@@ -1,7 +1,7 @@
import type { UmbEntryPointModule } from '../models/entry-point.interface.js';
/**
* Validate if an ESModule export has a function called 'befireInit'
* Validate if an ESModule has exported a function called `beforeInit`
*/
export function hasBeforeInitExport(obj: unknown): obj is Pick<UmbEntryPointModule, 'beforeInit'> {
return obj !== null && typeof obj === 'object' && 'beforeInit' in obj;