fix: add bookmark operation flag for ts check (#2699)

This commit is contained in:
wonderl17 2023-06-07 10:18:19 +08:00 committed by GitHub
parent 84f68fc2c0
commit fc658f4a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ export const blockSuiteFeatureFlags = z.object({
enable_slash_menu: z.boolean(), enable_slash_menu: z.boolean(),
enable_edgeless_toolbar: z.boolean(), enable_edgeless_toolbar: z.boolean(),
enable_linked_page: z.boolean(), enable_linked_page: z.boolean(),
enable_bookmark_operation: z.boolean(),
}); });
export type BlockSuiteFeatureFlags = z.infer<typeof blockSuiteFeatureFlags>; export type BlockSuiteFeatureFlags = z.infer<typeof blockSuiteFeatureFlags>;
@ -106,8 +107,8 @@ interface Desktop extends ChromeBrowser {
export type Environment = Browser | Server | Desktop; export type Environment = Browser | Server | Desktop;
export const env: Environment = (()=>{ export const env: Environment = (() => {
let environment = null let environment = null;
const isDebug = process.env.NODE_ENV === 'development'; const isDebug = process.env.NODE_ENV === 'development';
if (typeof window === 'undefined' || typeof navigator === 'undefined') { if (typeof window === 'undefined' || typeof navigator === 'undefined') {
environment = { environment = {
@ -151,7 +152,6 @@ export const env: Environment = (()=>{
return environment; return environment;
})(); })();
function printBuildInfo() { function printBuildInfo() {
console.group('Build info'); console.group('Build info');
console.log('Project:', config.PROJECT_NAME); console.log('Project:', config.PROJECT_NAME);