Open pboguslawski opened 1 year ago
You can't get enum imports from d.ts files because those types don't get transpiled to javascript. If you want this functionality and syntax you could probably import it directly from @material library like so
import { SortValue } from "@material/data-table";
those types don't get transpiled to javascript
Issue is about using simpler constants like sortDirection = SortValue.ASCENDING
in TS not after transpilation. Developer should not care about transpilation probably when developing and use enums properly. Correct me if I'm wrong.
Describe the bug
Why not just
in https://github.com/hperrin/svelte-material-ui/blob/master/packages/data-table/src/DataTable.svelte#L121 ?
Expected behavior Setting sortDirection using enum values from
@material>data-table>constants.d.ts
like
not