@throws alternative in ReScript

Hi,

Does ReScript have something like @throws in:

    /**
     * Returns paginated items list.
     *
     * You can use the generic T to supply a wrapper type of the crud model.
     *
     * @throws {ClientResponseError}
     */
    getList<T = M>(page?: number, perPage?: number, options?: ListOptions): Promise<ListResult<T>>;

source

2 Likes

you can use renalyze’s @throws, but if I remember correctly it only works inside the same package, ideally we should change this so it works in monorepos and dependent packages.

2 Likes

It would be great to have this work across packages, and to be part of the compiler so the warnings/errors are more visible.

1 Like