# EnumDeclaration

A TypeScript enum declaration.

* jsx

  ```tsx
  import { EnumDeclaration } from "@alloy-js/typescript";


  <EnumDeclaration jsValue={Record<string, string | number>} />
  ```

* stc

  ```ts
  import { EnumDeclaration } from "@alloy-js/typescript/stc";


  EnumDeclaration({
    jsValue: Record<string, string | number>,
  }).children(children)
  ```

## Props

|         |                                            |                                                            |
| ------- | ------------------------------------------ | ---------------------------------------------------------- |
| jsValue | optional Record\<string, string \| number> | A JS object representing the enum member names and values. |
