Skip to main content
Version: Next

createPermissionResourceRef()

Home > @backstage/plugin-permission-node > createPermissionResourceRef

Signature:

function createPermissionResourceRef<TResource, TQuery>(): {
with<TPluginId extends string, TResourceType extends string>(options: {
pluginId: TPluginId;
resourceType: TResourceType;
}): PermissionResourceRef<TResource, TQuery, TResourceType, TPluginId>;
};

Returns:

{ with<TPluginId extends string, TResourceType extends string>(options: { pluginId: TPluginId; resourceType: TResourceType; }): PermissionResourceRef<TResource, TQuery, TResourceType, TPluginId>; }