Skip to content

Commit

Permalink
Merge pull request #3 from TorstenDittmann/fix-required-attributes
Browse files Browse the repository at this point in the history
fix: make attributes without initializer required
  • Loading branch information
TorstenDittmann authored Aug 23, 2023
2 parents 8c3333e + cc59ac6 commit 97d22a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/process/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-markdoc-preprocess",
"version": "0.1.5",
"version": "0.1.6",
"description": "A Svelte preprocessor that allows you to use Markdoc.",
"type": "commonjs",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions packages/process/src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export function get_component_vars(
const type = ts_to_type(declaration);
prev[name] = {
type,
required: !declaration.initializer,
};
}
}
Expand Down

0 comments on commit 97d22a6

Please sign in to comment.