MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / parseTheme

Function parseTheme

src/back/extensions/ExtensionsScanner.ts:209–218  ·  view source on GitHub ↗
(parser: IObjectParserProp<ExtTheme>)

Source from the content-addressed store, hash-verified

207}
208
209function parseTheme(parser: IObjectParserProp<ExtTheme>): ExtTheme {
210 const theme: ExtTheme = {
211 id: '',
212 path: ''
213 };
214 parser.prop('id', v => theme.id = str(v));
215 parser.prop('path', v => theme.path = str(v));
216 parser.prop('logoSet', v => theme.logoSet = str(v), true);
217 return theme;
218}
219
220function parseDevScript(parser: IObjectParserProp<DevScript>): DevScript {
221 const devScript: DevScript = {

Callers 1

parseContributionsFunction · 0.85

Calls 2

strFunction · 0.85
propMethod · 0.65

Tested by

no test coverage detected