mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add lang.isBinary option
This commit is contained in:
3 files changed
+4
-3
No files matched your search
@@ -15,6 +15,7 @@ export interface LangConfig {
|
||||
target?: string;
|
||||
key: string;
|
||||
hidden: boolean;
|
||||
isBinary?: boolean;
|
||||
analysis?: string;
|
||||
/** @deprecated */
|
||||
remote?: string;
|
||||
@@ -52,6 +53,7 @@ export function parseLang(config: string): Record<string, LangConfig> {
|
||||
entry.key = key;
|
||||
entry.hidden ||= false;
|
||||
entry.disabled ||= false;
|
||||
entry.isBinary ||= false;
|
||||
entry.validAs ||= {};
|
||||
}
|
||||
return file;
|
||||
|
||||
Reference in new issue
Block a user