-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"eslint.experimental.useFlatConfig": true | ||
"eslint.experimental.useFlatConfig": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
# ts-template | ||
# fake fingerprint | ||
|
||
> a template for typescript project or plugin | ||
generate fake fingerprint of brower. | ||
|
||
- branch `master` => single repo template | ||
- branch `monorepo` => monorepo template | ||
# install | ||
|
||
```shell | ||
npm install fake-fingerprint | ||
``` | ||
|
||
# use | ||
|
||
# api | ||
|
||
# license | ||
|
||
MIT [@hemengke1997](https://github.com/hemengke1997) | ||
|
||
# inspiration | ||
|
||
by [my-fingerprint](https://github.com/omegaee/my-fingerprint) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{ | ||
"name": "ts-template", | ||
"version": "0.0.0", | ||
"name": "fake-fingerprint", | ||
"version": "0.0.1", | ||
"packageManager": "[email protected]", | ||
"description": "a template for typescript project or plugin", | ||
"description": "generate fake fingerprint of brower.", | ||
"type": "module", | ||
"keywords": [ | ||
"TODO" | ||
"fake", | ||
"fingerprint" | ||
], | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/hemengke1997/ts-template.git" | ||
"url": "git+https://github.com/thomas-void0/fake-fingerprint.git" | ||
}, | ||
"author": "hemengke <https://github.com/hemengke1997>", | ||
"author": "thomas-void0", | ||
"files": [ | ||
"CHANGELOG.md", | ||
"README.md", | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
export {} | ||
import { NavigatorHandle } from "./lib/navigator"; | ||
|
||
new NavigatorHandle((key) => { | ||
console.log("key:", key); | ||
}); | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type ReportFn<T> = (key: keyof T) => void | ||
export abstract class Base<C extends Record<string, any>> { | ||
abstract report: ReportFn<C> | ||
|
||
protected abstract intercept(): void | ||
|
||
abstract set(conf: C): void | ||
|
||
abstract reset(): void | ||
} |