@entity() class MediaSearchState:
@field(string) search = ''
@field(boolean) includePhotos = true
@field(boolean) includeText = true
@field(boolean) includeMyContent = true
@field(boolean) includeBrandContent = true
@field(boolean) includeGeneralContent = true
static create() -> create(MediaSearchState)
setSearchString(val): void => this.search = val
@entity() class Media:
@field(string) type = "image"
@field(string) url
@field(string) thumbUrl
@field(number) width
@field(number) height
Syntax highlighting breaks in the Media class. Changing the fat arrow to a skinny one fixes it.
Syntax highlighting breaks in the Media class. Changing the fat arrow to a skinny one fixes it.