Skip to content

Route guard properties should not only allow a guard function  #10

@sv2dev

Description

@sv2dev

Currently the types for the routes do not restrict the "?" property to be a function. This should be the case.

export interface Routes<T = any> {
  [k: string]: Routes<T> | Resolve<T>;
}

I already tried it with a conditional type and with intersection types, but I didn't get it working yet.
PR welcome.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions