Consider the following interface:
interface EPostageInsertExEvent_Parameter {
readonly Doc: Word.Document;
cpDeliveryAddrStart: number;
cpDeliveryAddrEnd: number;
readonly cpReturnAddrStart: number,
readonly cpReturnAddrEnd: number;
readonly xaWidth: number;
readonly yaHeight: number;
readonly bstrPrinterName: string;
readonly bstrPaperFeed: string;
readonly fPrint: boolean;
fCancel: boolean;
}
How would I go about defining a tuple type that contains the keys of this interface as string literals? Essentially, creating an equivalent to the following:
type EPostageInsertExEvent_ArgNames = ['Doc', 'cpDeliveryAddrStart', 'cpDeliveryAddrEnd',
'cpReturnAddrStart', 'cpReturnAddrEnd', 'xaWidth', 'yaHeight', 'bstrPrinterName',
'bstrPaperFeed', 'fPrint', 'fCancel'];