Skip to content

Instantly share code, notes, and snippets.

View Swahvay's full-sized avatar
🐴
Horsin' around

Stefan Parker Swahvay

🐴
Horsin' around
View GitHub Profile
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 {