File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ import { stripIndent } from 'common-tags';
4
4
import { DateTime } from 'luxon' ;
5
5
import { Readable } from 'stream' ;
6
6
import { keys as keysOf } from 'ts-transformer-keys' ;
7
- import { MergeExclusive , Opaque } from 'type-fest' ;
7
+ import { MergeExclusive } from 'type-fest' ;
8
8
import { BaseNode } from '~/core/database/results' ;
9
9
import { e } from '~/core/edgedb' ;
10
10
import { RegisterResource } from '~/core/resources' ;
11
11
import {
12
12
DateTimeField ,
13
13
DbLabel ,
14
14
ID ,
15
+ IdOf ,
15
16
InputException ,
16
17
NameField ,
17
18
Resource ,
@@ -177,7 +178,7 @@ export abstract class SecuredFile extends SecuredProperty(File) {}
177
178
*/
178
179
export type DefinedFile = Secured < FileId > ;
179
180
180
- export type FileId = ID & Opaque < string , 'FileId '> ;
181
+ export type FileId = IdOf < 'File '> ;
181
182
182
183
export const isDirectory = ( node : AnyFileNode ) : node is Directory =>
183
184
node . type === FileNodeType . Directory ;
You can’t perform that action at this time.
0 commit comments