Skip to content

Commit 9e34d70

Browse files
committed
fix: cleanup
1 parent 98bc5d9 commit 9e34d70

File tree

1 file changed

+0
-66
lines changed

1 file changed

+0
-66
lines changed

packages/core/server/types/strapi.ts

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -17,69 +17,3 @@ export interface IStrapi extends Omit<Strapi, 'entityService' | 'admin'> {
1717
}
1818
}
1919
}
20-
21-
export interface IDecoratedService {
22-
create: {
23-
call: (context: any, uid: any, options: any) => Promise<{
24-
id: number,
25-
locale?: string,
26-
localizations?: [
27-
{
28-
url_alias: {
29-
id: number
30-
},
31-
},
32-
],
33-
}>
34-
},
35-
update: {
36-
call: (context: any, uid: any, id: any, options: any) => Promise<{
37-
id: number
38-
locale?: string,
39-
localizations?: [
40-
{
41-
url_alias: {
42-
id: number
43-
},
44-
},
45-
],
46-
}>
47-
},
48-
delete: {
49-
call: (context: any, uid: any, options: any) => Promise<{ id: number }>
50-
}
51-
findOne: {
52-
call: (context: any, uid: any, id: any, options: any) => Promise<{
53-
id: number, url_alias?: Attribute.GetValues<'plugin::webtools.url-alias', Attribute.GetNonPopulatableKeys<'plugin::webtools.url-alias'>>
54-
}>
55-
}
56-
clone: {
57-
call: (context: any, uid: any, cloneId: any, options: any) => Promise<{
58-
id: number,
59-
locale?: string,
60-
localizations?: [
61-
{
62-
url_alias: {
63-
id: number
64-
},
65-
},
66-
],
67-
}>
68-
},
69-
deleteMany: {
70-
call: (context: any, uid: any, options: any) => Promise<{ id: number }>
71-
}
72-
}
73-
74-
export interface IDecoratedServiceOptions<Fields> {
75-
data: Fields
76-
populate: {
77-
localizations: {
78-
populate: {
79-
url_alias: {
80-
fields: ['id']
81-
}
82-
}
83-
}
84-
}
85-
}

0 commit comments

Comments
 (0)