This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { LocationBaseMixin } from './generated/location_base.ts'; | |
| type Constructor<T = {}> = new (...args: any[]) => T; | |
| interface ILocation { | |
| isAddressInCalifornia: () => boolean; | |
| } | |
| export function LocationMixin<T extends Constructor>(BaseClass: T) { | |
| return class LocationMixin extends LocationBaseMixin(BaseClass) implements ILocation { |