forked from mirror/misskey
drive-folder
This commit is contained in:
parent
59ac258272
commit
8f67adb817
@ -2,9 +2,7 @@ import { EntityRepository, Repository } from 'typeorm';
|
||||
import { DriveFolders, DriveFiles } from '../index';
|
||||
import { DriveFolder } from '@/models/entities/drive-folder';
|
||||
import { awaitAll } from '@/prelude/await-all';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
|
||||
export type PackedDriveFolder = SchemaType<typeof packedDriveFolderSchema>;
|
||||
import { Packed } from '@/misc/schema';
|
||||
|
||||
@EntityRepository(DriveFolder)
|
||||
export class DriveFolderRepository extends Repository<DriveFolder> {
|
||||
@ -20,7 +18,7 @@ export class DriveFolderRepository extends Repository<DriveFolder> {
|
||||
options?: {
|
||||
detail: boolean
|
||||
}
|
||||
): Promise<PackedDriveFolder> {
|
||||
): Promise<Packed<'DriveFolder'>> {
|
||||
const opts = Object.assign({
|
||||
detail: false
|
||||
}, options);
|
||||
|
Loading…
Reference in New Issue
Block a user