MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / hasEntitlement

Function hasEntitlement

packages/shared/src/entitlements.ts:174–177  ·  view source on GitHub ↗
(entitlement: Entitlement, _license: License | null)

Source from the content-addressed store, hash-verified

172}
173
174export const hasEntitlement = (entitlement: Entitlement, _license: License | null) => {
175 const entitlements = getEntitlements(_license);
176 return entitlements.includes(entitlement);
177}
178
179export type OfflineLicenseMetadata = {
180 id: string;

Callers 1

Calls 1

getEntitlementsFunction · 0.70

Tested by

no test coverage detected