graphitation icon indicating copy to clipboard operation
graphitation copied to clipboard

contextPath relative to CWD and resolvers return readonly array

Open vejrj opened this issue 3 years ago • 1 comments

vejrj avatar Oct 26 '22 14:10 vejrj

I think we should consider having Readonly in PromiseOrValue type instead. This will make generated types a bit more readable.

Example in TS playground

@freiksenet @vejrj what do you think?

vladar avatar Oct 26 '22 18:10 vladar

Yeah, this looks good. Let's do that.

freiksenet avatar Oct 27 '22 08:10 freiksenet

Generic immutable seems to be a hard thing to do right (see full discussion in this thread).

So, for now we'll have to stick with explicit ReadonlyArray. We can revisit it a bit later for our specific case, that doesn't really require a generic solution.

vladar avatar Oct 27 '22 12:10 vladar