diff --git a/packages/core-data/src/hooks/use-resource-permissions.ts b/packages/core-data/src/hooks/use-resource-permissions.ts index b026341d31c89..abad77edf3768 100644 --- a/packages/core-data/src/hooks/use-resource-permissions.ts +++ b/packages/core-data/src/hooks/use-resource-permissions.ts @@ -22,15 +22,19 @@ interface ResolutionDetails { * Is the data still being resolved? */ isResolving: boolean; - /** - * Is the data resolved by now? - */ - hasResolved: boolean; } -type ResourcePermissionsResolution< IdType > = ResolutionDetails & - GlobalResourcePermissionsResolution & - ( IdType extends void ? SpecificResourcePermissionsResolution : {} ); +/** + * Is the data resolved by now? + */ +type HasResolved = boolean; + +type ResourcePermissionsResolution< IdType > = [ + HasResolved, + ResolutionDetails & + GlobalResourcePermissionsResolution & + ( IdType extends void ? SpecificResourcePermissionsResolution : {} ) +]; /** * Resolves resource permissions.