Skip to content

Commit

Permalink
chore: add ts check
Browse files Browse the repository at this point in the history
  • Loading branch information
ybzky committed Jan 23, 2025
1 parent a08fa30 commit 7c2045a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sheets/src/facade/f-permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import type { RangePermissionPointConstructor, WorkbookPermissionPointConstructor, WorkSheetPermissionPointConstructor } from '@univerjs/core';
import type { ISetWorksheetPermissionPointsMutationParams } from '@univerjs/sheets';
import type { Observable } from 'rxjs';
import type { FRange } from './f-range';
import { FBase, generateRandomId, IAuthzIoService, ICommandService, Inject, Injector, IPermissionService, Rectangle } from '@univerjs/core';
Expand Down Expand Up @@ -220,7 +221,7 @@ export class FPermission extends FBase {
scope: undefined,
},
});
this._commandService.syncExecuteCommand(SetWorksheetPermissionPointsMutation.id, { unitId, subUnitId, rule: { unitId, subUnitId, permissionId } });
this._commandService.syncExecuteCommand<ISetWorksheetPermissionPointsMutationParams>(SetWorksheetPermissionPointsMutation.id, { unitId, subUnitId, rule: { unitId, subUnitId, permissionId } });
} else {
permissionId = rule.permissionId;
}
Expand Down

0 comments on commit 7c2045a

Please sign in to comment.