Comment

Comment by aj0strow

Yeah but assigning doesn't really work for nested classes.

    class Post {
       id: string;
       user: User;  // <- should be typeof User
    }
I was hoping for something like Golang json.Unmarshal.
parent aj0strow 10 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton