Eliminate constant expressions from schema export
Open
💅 enhancement
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 625
- Avg merge
- 5h 23m
- Merged PRs (30d)
- 24
Description
```ts
const executor = new PgExecutor({
name: "main",
context() {
const ctx = context();
return object({
pgSettings: "pgSettings" != null ? ctx.get("pgSettings") : constant(null),
withPgClient: ctx.get("withPgClient")
});
}
});
```
The expression `"pgSettings" != null ? ctx.get("pgSettings") : constant(null)` can be replaced with just `ctx.get("pgSettings")`.
Contributor guide
Assessment
This issue has not been assessed yet.