Recently, I came across the ?=
assignment expression within a class property declaration. Can anyone provide some insight into what this means?
I am familiar with the new Optional Chaining feature (object?.prop), but this particular syntax is unfamiliar to me. I am unsure if it is a mistake or an actual language feature?
export class GoogleConfig {
GOOGLE_CLIENT_ID: string
GOOGLE_CLIENT_SECRET: string
GOOGLE_CALLBACK_URL?='http://localhost/frontend'
GOOGLE_CALLBACK_URL_INTERNAL?='http://localhost/auth/google'
}
Any clarification on this matter would be greatly appreciated!