glideapps / glideapps/quicktype

noUnusedLocals error while converting ts interface to ts with validation

Open
#2,267 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
13.9k
Forks
1.2k
Avg merge
8h 53m
Merged PRs (30d)
369

Description

While generating typescript validation file from typescript interfaces, there is the below function that get's generated but not used in the generated file itself. This triggeres a noUnusedLocals error because of the config in tsconfig file.

function m(additional: any) {
return { props: [], additional };
}

We don't want to manually edit this file everytime it gets generated when a new source interface is added.
Is there an option to exclude this function from being generated or any other way to circumvent this issue?
atm, I am working around this by using a sed command on the generated file. Thanks in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.