MCPcopy Create free account
hub / github.com/Effect-TS/effect / integer

Function integer

packages/chat/telegram/src/internal/normalize.ts:30–33  ·  view source on GitHub ↗
(o: unknown, key: string)

Source from the content-addressed store, hash-verified

28
29/** @internal */
30export const integer = (o: unknown, key: string): number | undefined => {
31 const value = field(o, key)
32 return typeof value === "number" && Number.isSafeInteger(value) ? value : undefined
33}
34
35/** What normalising needs to know about the bot. @internal */
36export interface Context {

Callers 15

clickEventFunction · 0.90
commandEventFunction · 0.90
receiveFunction · 0.90
originOfFunction · 0.90
postedFunction · 0.90
downloadFunction · 0.90
makeFunction · 0.90
runUpdateFunction · 0.90
loopFunction · 0.90
isEphemeralFunction · 0.85
threadOfFunction · 0.85
messageIdOfFunction · 0.85

Calls 1

fieldFunction · 0.70

Tested by

no test coverage detected