Skip to content

Parameters not typesafe, fails to compile on my project #8

Description

@florestankorp

Please make types explicit because some projects require typesafe parameters. Thanks!

[0] ERROR in node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(27,34): error TS7006: Parameter 'element' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(37,33): error TS7006: Parameter 'element' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(74,52): error TS7006: Parameter 'target' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(79,36): error TS7006: Parameter 'element' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(88,35): error TS7006: Parameter 'element' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(116,23): error TS7006: Parameter 'element' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(116,32): error TS7006: Parameter 'options' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(150,36): error TS7006: Parameter 'type' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(150,42): error TS7006: Parameter 'time' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(171,34): error TS7006: Parameter 'element' implicitly has an 'any' type.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(191,5): error TS7034: Variable 'position' implicitly has type 'any' in some locations where its type cannot be determined.
[0] node_modules/ng2-smooth-scroll/lib/ng2-SmoothScroll.directive.ts(210,7): error TS7005: Variable 'position' implicitly has an 'any' type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions