Narrowing a Schema.Any to Schema.Class in TypeScript

If I have a function that takes a schema as a parameter like so: <S extends Schema.Schema.Any>(schema: S) => { if (narrowType(s){ ... } } how can I narrow the type from Schema.Any to a Schema.Class, or otherwise get its identifier property?
Was this page helpful?