MCPcopy Index your code
hub / github.com/bernaferrari/FigmaToCode / isKeyOfPluginSettings

Function isKeyOfPluginSettings

apps/plugin/plugin-src/code.ts:45–47  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

43
44// A helper type guard to ensure the key belongs to the PluginSettings type
45function isKeyOfPluginSettings(key: string): key is keyof PluginSettings {
46 return key in defaultPluginSettings;
47}
48
49const getUserSettings = async () => {
50 console.log("[DEBUG] getUserSettings - Starting to fetch user settings");

Callers 1

getUserSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected