-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* Copyright whaa whaa | ||
* Generated by github.com/lolopinto/ent/ent, DO NOT EDIT. | ||
*/ | ||
|
||
import { | ||
IWithDayOfWeekBase, | ||
WithDayOfWeekBaseMixin, | ||
} from "../generated/mixins/with_day_of_week_base"; | ||
import { ExampleViewer as ExampleViewerAlias } from "../../viewer/viewer"; | ||
|
||
export interface IWithDayOfWeek< | ||
TViewer extends ExampleViewerAlias = ExampleViewerAlias, | ||
> extends IWithDayOfWeekBase<TViewer> { | ||
isWithDayOfWeek(): boolean; | ||
|
||
// add custom fields | ||
} | ||
|
||
type Constructor<T extends IWithDayOfWeek = IWithDayOfWeek> = new ( | ||
...args: any[] | ||
) => T; | ||
|
||
export function isWithDayOfWeek(ent: unknown): ent is IWithDayOfWeek { | ||
const o = ent as IWithDayOfWeek; | ||
return (o.isWithDayOfWeek && o.isWithDayOfWeek()) ?? false; | ||
} | ||
|
||
export function WithDayOfWeekMixin<T extends Constructor>(BaseClass: T) { | ||
return class WithDayOfWeekMixin | ||
extends WithDayOfWeekBaseMixin(BaseClass) | ||
implements IWithDayOfWeek | ||
{ | ||
isWithDayOfWeek() { | ||
return true; | ||
} | ||
|
||
// add custom fields implementation | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.