This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type VDate = Date | |
type VDateContext = { | |
current: (actualBase?: Date) => VDate; | |
toVirtual: (date: Date) => VDate; | |
toActual: (date: VDate) => Date; | |
mapToVirtual: (date: Date, actualBase?: Date) => VDate; | |
} | |
const createContext = (factor: number, _virtualBase?: Date): VDateContext => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as AWS from 'aws-sdk' | |
export const fetch = async (startKey?: AWS.DynamoDB.Key | undefined) => { | |
const ddb = new AWS.DynamoDB({ | |
endpoint: 'http://localhost:8000' | |
}) | |
const limit = 6 | |
const defaultInput: AWS.DynamoDB.ScanInput = { |
OlderNewer