Open JimmyBjorklund opened 2 hours ago
Hi Have an update request that looks like this
interface UpdateRequest { u: boolean | null } @Put("g/{id}") async updateU(id: string, @Body() body: UpdateRequest ): Promise<void> { console.log("update", body); }
When trying to pass null to the variable u it auto translates to false instead of null that one would expect. Is this expected? /Jimmy
Found another strang thing if i set u: "null" | boolean; Then passing both null and "null" seems to work, this seams wrong if i set a string "null" then null should not work ?
u: "null" | boolean;
Hi Have an update request that looks like this
When trying to pass null to the variable u it auto translates to false instead of null that one would expect. Is this expected? /Jimmy