Skip to content

Config Problem & Render Problem #135

@NewtTheWolf

Description

@NewtTheWolf

Describe the bug
When I try to overwrite the config of parse I get the first error when I specify only one option "ERROR".

Type '{ raw: string; }' is missing the following properties from type '{ exec: string; interpolate: string; raw: string; }': exec, interpolatedeno-ts(2739)
(property) parse?: {
    exec: string;
    interpolate: string;
    raw: string;
} | undefined

If I specify all options (even if I leave them default except one in my case raw) the engine renders the templates wrong, unfortunately I don't get an error there

To Reproduce
Steps to reproduce the behavior:

  1. Define the Settings with: parse: { raw: "-" }
  2. Hover over parse

Seccond Problem:

  1. Define the Settings with: parse: { exec: "", interpolate: "=", raw: "-" }
  2. Create a EJS file with the new "raw"
  3. Render the Template

Expected behavior
First Problem:
that I do not get an error when I want to change only 1 config

Seccond Problem:
that the template is rendered with my newly defined config

Screenshots
If applicable, add screenshots to help explain your problem.

Package & Environment Details

  • Environment: deno 1.12.0+1ad6575 (canary, x86_64-pc-windows-msvc), v8 9.2.230.14, typescript 4.3.2, Eta v1.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions