Skip to content

Commit

Permalink
Fix lit tempalate ts error (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i authored Jan 20, 2025
1 parent 59bb240 commit 47553d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class {{pascal_case (plural ../entry_type.name)}}For{{pascal_case linked_
@state()
hashes: Array<ActionHash> = [];

_fetch{{pascal_case (plural ../entry_type.name)}} = new Task(this, ([{{camel_case linked_from.singular_arg}}]: Array<{{linked_from.hash_type}}>) => this.client.callZome({
_fetch{{pascal_case (plural ../entry_type.name)}} = new Task(this, ([{{camel_case linked_from.singular_arg}}]: readonly {{linked_from.hash_type}}[]) => this.client.callZome({
cap_secret: null,
role_name: '{{../dna_role_name}}',
zome_name: '{{../coordinator_zome_manifest.name}}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class {{pascal_case entry_type.name}}Detail extends LitElement {
})
{{camel_case entry_type.name}}Hash!: {{#if entry_type.reference_entry_hash}}EntryHash{{else}}ActionHash{{/if}};

_fetchRecord = new Task(this, ([{{camel_case entry_type.name}}Hash]: Array<{{#if entry_type.reference_entry_hash}}EntryHash{{else}}ActionHash{{/if}}>) => this.client.callZome({
_fetchRecord = new Task(this, ([{{camel_case entry_type.name}}Hash]: readonly {{#if entry_type.reference_entry_hash}}EntryHash{{else}}ActionHash{{/if}}[]) => this.client.callZome({
cap_secret: null,
role_name: '{{dna_role_name}}',
zome_name: '{{coordinator_zome_manifest.name}}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class {{pascal_case (plural from_referenceable.name)}}For{{pascal_case to
})
{{camel_case to_referenceable.singular_arg}}!: {{to_referenceable.hash_type}};

_fetch{{pascal_case (plural from_referenceable.name)}} = new Task(this, ([{{camel_case to_referenceable.singular_arg}}]: Array<{{to_referenceable.hash_type}}>) => this.client.callZome({
_fetch{{pascal_case (plural from_referenceable.name)}} = new Task(this, ([{{camel_case to_referenceable.singular_arg}}]: readonly {{to_referenceable.hash_type}}[]) => this.client.callZome({
cap_secret: null,
role_name: '{{dna_role_name}}',
zome_name: '{{coordinator_zome_manifest.name}}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class {{pascal_case (plural to_referenceable.name)}}For{{pascal_case from
@state()
signaledHashes: Array<{{to_referenceable.hash_type}}> = [];

_fetch{{pascal_case (plural to_referenceable.name)}} = new Task(this, ([{{camel_case from_referenceable.singular_arg}}]: Array<{{from_referenceable.hash_type}}>) => this.client.callZome({
_fetch{{pascal_case (plural to_referenceable.name)}} = new Task(this, ([{{camel_case from_referenceable.singular_arg}}]: readonly {{from_referenceable.hash_type}}[]) => this.client.callZome({
cap_secret: null,
role_name: '{{dna_role_name}}',
zome_name: '{{coordinator_zome_manifest.name}}',
Expand Down

0 comments on commit 47553d7

Please sign in to comment.