samchon / tgrid

TypeScript RPC (Remote Procedure Call) for WebSocket and Worker protocols
https://tgrid.com/
MIT License
141 stars 19 forks source link

Driver.Primitive converts user-defined literals #23

Closed samchon closed 4 years ago

samchon commented 4 years ago

Summary

Code occuring the bug

type MyBoolean = Driver.Pritimive<false>; // be boolean
type MyNumber = Driver.Pritimive<4>; // be number
type MyString = Driver.Pritimive<"my_literal">; // be string
samchon commented 4 years ago

Fixed