How to declare an optional schema?

I wonder if it's possible to define a schema that is ok if data is undefined.

E.g. in:
declare function foo(a?: string)v void

how to declare a schema for
a
?
Was this page helpful?