Skip to content

Commit

Permalink
fix: createRouter function types
Browse files Browse the repository at this point in the history
  • Loading branch information
ducksoupdev committed Nov 16, 2021
1 parent fb38060 commit 468ac2f
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 68 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.1] - 2021-11-16

### Fixes
- Fix types for `createRouter` function

## [3.1.0] - 2021-10-20

### Updates
Expand Down
112 changes: 49 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ficusjs/router",
"version": "3.1.0",
"version": "3.1.1",
"description": "Lightweight standalone client-side router that supports history and hash routing",
"type": "module",
"main": "dist/router.mjs",
Expand Down Expand Up @@ -30,13 +30,13 @@
"author": "Matt Levy",
"license": "MIT",
"devDependencies": {
"@ficusjs/renderers": "4.1.1",
"@ficusjs/renderers": "4.2.0",
"cypress": "8.6.0",
"ficusjs": "3.8.3",
"ficusjs": "3.9.0",
"http-server": "14.0.0",
"npm-run-all": "4.1.5",
"open-cli": "7.0.1",
"rollup": "2.58.0",
"rollup": "2.60.0",
"rollup-plugin-filesize": "9.1.1",
"rollup-plugin-terser": "7.0.2",
"standard": "16.0.4",
Expand Down
2 changes: 1 addition & 1 deletion types/router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ declare class Router {

type GetRouterFunction = () => Router

export declare function createRouter (routes: Routes, options?: RouterOptions): Router
export declare function createRouter (routes: Routes, rootOutletSelector: string, options?: RouterOptions): Router

export declare function getRouter (): Router

0 comments on commit 468ac2f

Please sign in to comment.