@luxass/vscode-config
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@luxass/vscode-config

npm version npm downloads

Typesafe Visual Studio Code configurations

📦 Installation

npm install @luxass/vscode-config

📚 Usage

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" });

📄 License

Published under MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i @luxass/vscode-config

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

8.24 kB

Total Files

7

Last publish

Collaborators

  • luxass