I have a method with string literal type guard
type Status = 'new' | 'update' | 'close';
itemRequest(status: Status) {
itemService.subscribeToChanges(status) //third party library method
}
Difficulty I have is this third party method accepts string not my custom string type Status
subscribeToChanges(status: string)
How can I make my string literals are actually types of string and when I pass to third party method. It understand it's actually a string?