-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure typescript build and lint #5
Conversation
src/declarations.d.ts
Outdated
type UnboundOperatorFunc = (OperatorArg, HTMLElement) => OperatorResult | ||
type OperatorFunc = (HTMLElement) => OperatorResult |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts
./components/cosmetic_filters/resources/data/content_cosmetic.ts 806:30-41
[tsl] ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts(806,31)
TS7051: Parameter has a name but no type. Did you mean 'arg0: OperatorArg'?
ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts
./components/cosmetic_filters/resources/data/content_cosmetic.ts 806:43-54
[tsl] ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts(806,44)
TS7051: Parameter has a name but no type. Did you mean 'arg1: HTMLElement'?
ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts
./components/cosmetic_filters/resources/data/content_cosmetic.ts 807:23-34
[tsl] ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts(807,24)
TS7051: Parameter has a name but no type. Did you mean 'arg0: HTMLElement'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type UnboundOperatorFunc = (OperatorArg, HTMLElement) => OperatorResult | |
type OperatorFunc = (HTMLElement) => OperatorResult | |
type UnboundOperatorFunc = (arg: OperatorArg, element: HTMLElement) => OperatorResult | |
type OperatorFunc = (element: HTMLElement) => OperatorResult |
type Filter = Operator[] | ||
|
||
type NeedlePosition = number | ||
type TextMatchRule = (targetText: string, exact: boolean = false) => boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts
./components/cosmetic_filters/resources/data/content_cosmetic.ts 819:44-66
[tsl] ERROR in brave-browser/src/brave/components/cosmetic_filters/resources/data/content_cosmetic.ts(819,45)
TS2371: A parameter initializer is only allowed in a function or constructor implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type TextMatchRule = (targetText: string, exact: boolean = false) => boolean | |
type TextMatchRule = (targetText: string, exact?: boolean) => boolean |
0a3cd30
to
baf9aaa
Compare
Also handled Antons
:
case for CSS rules, and quoted CSS values