fix: type import (#2715)

(cherry picked from commit 7f2006488e)
This commit is contained in:
Himself65
2023-06-07 22:47:02 +08:00
committed by Alex Yang
parent cd5aec42a0
commit 28e05dc92c
24 changed files with 60 additions and 91 deletions
+10 -2
View File
@@ -1,12 +1,20 @@
/// <reference types="@blocksuite/global" />
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="./global.d.ts" />
import { assertEquals } from '@blocksuite/global/utils';
import getConfig from 'next/config';
import { z } from 'zod';
import { UaHelper } from './ua-helper';
declare global {
interface Window {
appInfo: {
electron: boolean;
};
apis: any;
events: any;
}
}
export const buildFlagsSchema = z.object({
/**
* todo: remove this build flag when filter feature is ready.
-5
View File
@@ -1,5 +0,0 @@
interface Window {
appInfo: {
electron: bool;
};
}
+3 -4
View File
@@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"noEmit": false,
"composite": true,
"noEmit": false,
"outDir": "lib"
},
"include": ["./src", "env.d.ts", "./src/global.d.ts"],
"exclude": ["lib"]
}
}