Yuki Takei 1 год назад
Родитель
Сommit
340d71fd0a

+ 1 - 1
packages/core/src/interfaces/attachment.ts

@@ -1,5 +1,5 @@
 import type { Ref } from './common';
 import type { Ref } from './common';
-import { HasObjectId } from './has-object-id';
+import type { HasObjectId } from './has-object-id';
 import type { IPage } from './page';
 import type { IPage } from './page';
 import type { IUser } from './user';
 import type { IUser } from './user';
 
 

+ 1 - 2
packages/core/src/interfaces/common.spec.ts

@@ -3,8 +3,7 @@ import { Types } from 'mongoose';
 import { mock } from 'vitest-mock-extended';
 import { mock } from 'vitest-mock-extended';
 
 
 import { getIdForRef, isPopulated } from './common';
 import { getIdForRef, isPopulated } from './common';
-import type { IPageHasId } from './page';
-import { type IPage } from './page';
+import { type IPageHasId, type IPage } from './page';
 
 
 describe('isPopulated', () => {
 describe('isPopulated', () => {
 
 

+ 2 - 1
packages/core/src/swr/use-swr-static.ts

@@ -1,5 +1,6 @@
 import {
 import {
-  Key, SWRConfiguration, SWRResponse, useSWRConfig,
+  useSWRConfig,
+  type Key, type SWRConfiguration, type SWRResponse,
 } from 'swr';
 } from 'swr';
 import useSWRImmutable from 'swr/immutable';
 import useSWRImmutable from 'swr/immutable';