ブックマーク / google.github.io (1)

  • Google TypeScript Style Guide

    // Good: choose between two options as appropriate (see below). import * as ng from '@angular/core'; import {Foo} from './foo'; // Only when needed: default imports. import Button from 'Button'; // Sometimes needed to import libraries for their side effects: import 'jasmine'; import '@polymer/paper-button'; Import paths TypeScript code must use paths to import other TypeScript code. Paths may be r

    fujiten3
    fujiten3 2021/02/16
    Interfaces vs Type Aliases についてGoogleチームはInterfacesを採用するようです(そこしか読んでない)
  • 1