Skip to content

Commit dcfd92f

Browse files
committed
chore(compiler): add meta / data files
1 parent 8007a26 commit dcfd92f

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

packages/compiler/src/types.ts

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
import { ReplexicaScopeHint } from "./compiler";
2+
13
export type ReplexicaConfig = {
2-
sourceLocale: string;
4+
locale: {
5+
source: string;
6+
targets: string[];
7+
};
38
debug?: boolean;
49
};
510

@@ -10,3 +15,32 @@ export type ReplexicaLocaleData = {
1015
};
1116
};
1217
};
18+
19+
export type ReplexicaData = {
20+
settings: ReplexicaSettingsData;
21+
meta: ReplexicaMetaData;
22+
};
23+
24+
export type ReplexicaMetaData = {
25+
files: ReplexicaMetaFileData;
26+
scopes: ReplexicaMetaScopeData;
27+
};
28+
29+
export type ReplexicaSettingsData = {
30+
locale: {
31+
source: string;
32+
targets: string[];
33+
};
34+
};
35+
36+
export type ReplexicaMetaFileData = {
37+
[fileId: string]: {
38+
isClient: boolean;
39+
};
40+
};
41+
42+
export type ReplexicaMetaScopeData = {
43+
[scopeId: string]: {
44+
hints: ReplexicaScopeHint[];
45+
};
46+
};

0 commit comments

Comments
 (0)