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

Function parseLogoSet

src/back/extensions/ExtensionsScanner.ts:197–207  ·  view source on GitHub ↗
(parser: IObjectParserProp<ILogoSet>)

Source from the content-addressed store, hash-verified

195}
196
197function parseLogoSet(parser: IObjectParserProp<ILogoSet>): ILogoSet {
198 const logoSet: ILogoSet = {
199 id: '',
200 name: '',
201 path: '',
202 };
203 parser.prop('id', v => logoSet.id = str(v));
204 parser.prop('name', v => logoSet.name = str(v));
205 parser.prop('path', v => logoSet.path = str(v));
206 return logoSet;
207}
208
209function parseTheme(parser: IObjectParserProp<ExtTheme>): ExtTheme {
210 const theme: ExtTheme = {

Callers 1

parseContributionsFunction · 0.85

Calls 2

strFunction · 0.85
propMethod · 0.65

Tested by

no test coverage detected