Skip to content

Commit

Permalink
chore: fix types for specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Aug 13, 2023
1 parent 4618e25 commit b4af541
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions typings/lib/common/RNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ export class RNode<InstanceType extends import("./Routify").Routify<any>> {
instance: InstanceType;
name: string;
module: string | ReservedCmpProps;
specificity: {
static: number;
dynamic: number;
};
specificity: number[];
/** @param {InstanceType['NodeConstructor']['prototype']} child */
appendChild(child: InstanceType['NodeConstructor']['prototype']): void;
/**
Expand All @@ -48,7 +45,6 @@ export class RNode<InstanceType extends import("./Routify").Routify<any>> {
_regex: {
[x: string]: RegExp;
};
set regex(arg: RegExp);
get regex(): RegExp;
/**
* @type {Object.<string, string[]>}
Expand Down
4 changes: 0 additions & 4 deletions typings/types/typedef.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ type RoutifyBuildtimeOptions = {
* defaults to ['.svelte', '.html', '.md', '.svx'],
*/
extensions: (string | RegExp)[];
/**
* // *
*/
plugins: string[] | any[];
beforeWrite: (instance: RoutifyBuildtime) => void;
/**
* rebuild Routify routes on changes
*/
Expand Down

0 comments on commit b4af541

Please sign in to comment.