mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
fix type
This commit is contained in:
@@ -29,7 +29,7 @@ export interface PageBody {
|
||||
variables: Array<Record<string, any>>;
|
||||
script: string;
|
||||
eyeCatchingImage?: MiDriveFile | null;
|
||||
font: string;
|
||||
font: 'serif' | 'sans-serif';
|
||||
alignCenter: boolean;
|
||||
hideTitleWhenPinned: boolean;
|
||||
}
|
||||
@@ -141,7 +141,7 @@ export class PageService {
|
||||
eyeCatchingImageId: body.eyeCatchingImage === undefined ? undefined : (body.eyeCatchingImage?.id ?? null),
|
||||
});
|
||||
|
||||
console.log("page.content", page.content);
|
||||
console.log('page.content', page.content);
|
||||
|
||||
if (body.content != null) {
|
||||
const beforeReferencedNotes = this.collectReferencedNotes(page.content);
|
||||
|
||||
@@ -47,7 +47,7 @@ export class MiPage {
|
||||
@Column('varchar', {
|
||||
length: 32,
|
||||
})
|
||||
public font: string;
|
||||
public font: 'serif' | 'sans-serif';
|
||||
|
||||
@Index()
|
||||
@Column({
|
||||
|
||||
Reference in New Issue
Block a user