10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
export const sortProperty = (
|
|
property: string,
|
|
direction: 'ascending' | 'descending'
|
|
) => ({ property, direction });
|
|
|
|
export const sortTimestamp = (
|
|
timestamp: 'last_edited_time' | 'created_time',
|
|
direction: 'ascending' | 'descending'
|
|
) => ({ timestamp, direction });
|