const enum ResponseHeadersMapping {
totalCount = 'X-Total-Count'
link = 'Link'
}
interface ResponseHeaders {
totalCount: number
link?: string
}
const enum ResponseHeadersMapping {
totalCount = 'X-Total-Count',
link = 'Link',
}
type ResponseHeaders = {
[key in ResponseHeadersMapping]: string
}
const variable: ResponseHeaders = {
[ResponseHeadersMapping.totalCount]: 'totalCount',
[ResponseHeadersMapping.link]: 'link',
};