Commit Graph

7 Commits

Author SHA1 Message Date
Peter Burns
6278ee5df9 chore: just import 'lit', it's cleaner
Fixes #2742

PiperOrigin-RevId: 399238961
2021-09-27 11:28:08 -07:00
Material Web Team
d75a5f74e3 Add the override keyword to class members in TypeScript files
TypeScript’s override keyword (added in 4.3) works similarly to @Override in Java. It makes the intention clear and ensures there is actually a member in the base class with the same name. This helps with things like:
- Typos in the overriding member name
- Remember to rename members in sub classes when renaming an overridden member in a base class

class Parent {
  foo() {}
}

class Child extends Parent {
  override bar() {}
  //       ~~~ This member cannot have an 'override' modifier because it is not declared in the base class 'Parent'.
}

This change will not cause a runtime change: the override keyword is not present in the resulting JavaScript.

PiperOrigin-RevId: 391936931
2021-08-20 00:52:47 -07:00
Liz Mitchell
9e41cb2e16 chore: add internal tslint comments
PiperOrigin-RevId: 385029244
2021-07-15 16:05:41 -07:00
Elliott Marquez
ea2a806352 refactor: all styles are now arrays
PiperOrigin-RevId: 375790092
2021-05-25 14:02:15 -07:00
Daniel Freedman
f748ff2fac (change): Import styles from .css.ts instead of -css.ts
PiperOrigin-RevId: 374313670
2021-05-17 17:18:05 -07:00
Elliott Marquez
2212691aaf Docs: change license header to SPDX short form
fixes #2419

PiperOrigin-RevId: 374308530
2021-05-17 16:48:25 -07:00
Liz Mitchell
5f4fe8f106 chore: remove src folders #1496
PiperOrigin-RevId: 327125117
2020-08-17 16:39:27 -07:00