• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rokucommunity / brighterscript / #12680

13 Jun 2024 11:41AM UTC coverage: 87.939%. Remained the same
#12680

push

web-flow
fix: conform bsconfig.schema.json to strict types (#1205)

* fix: conform bsconfig.schema.json to strict types

* chore: move deprecate message to description

* Restore deprecationMessage, add unit test

---------

Co-authored-by: Bart van den Ende <bart.van.den.ende@wbd.com>
Co-authored-by: Bronley Plumb <bronley@gmail.com>

6068 of 7374 branches covered (82.29%)

Branch coverage included in aggregate %.

8791 of 9523 relevant lines covered (92.31%)

1741.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

46.15
/src/types/InvalidType.ts
1
import type { BscType } from './BscType';
2
import { DynamicType } from './DynamicType';
1✔
3

4
export class InvalidType implements BscType {
1✔
5
    constructor(
6
        public typeText?: string
55✔
7
    ) { }
8

9
    public isAssignableTo(targetType: BscType) {
10
        return (
2✔
11
            targetType instanceof InvalidType ||
3✔
12
            targetType instanceof DynamicType
13
        );
14
    }
15

16
    public isConvertibleTo(targetType: BscType) {
17
        return this.isAssignableTo(targetType);
×
18
    }
19

20
    public toString() {
21
        return this.typeText ?? 'invalid';
×
22
    }
23

24
    public toTypeString(): string {
25
        return this.toString();
×
26
    }
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc