ISPNexusPackageFn()<PackageName, Result>
type ISPNexusPackageFn<PackageName, Result>: (packageName) => Promise<Result>;
Type-signature for a package-scoped function.
This is used to ensure that the function is only called with a valid package name, while avoiding the ceremony of carrying around the package name as a typed parameter.
Type Parameters
Type Parameter | Default type |
---|---|
PackageName extends ISPNexusPackage | ISPNexusPackage |
Result | unknown |
Parameters
Parameter | Type |
---|---|
packageName | PackageName |
Returns
Promise
<Result
>