Typesafe Visual Studio Code configurations
npm install @luxass/vscode-config
import { createConfig } from "@luxass/vscode-config";
const config = createConfig<{
readonly outputPath: string;
readonly framework: {
readonly enabled: boolean;
readonly type: "react" | "vue";
};
}>({
section: "playground"
});
const framework = config.get("framework"); // type: { enabled: boolean; type: "react" | "vue"; }
// => { enabled: false, type: "react" }
config.set("framework", { enabled: true, type: "vue" });
Published under MIT License.