MCPcopy Create free account
hub / github.com/cirosantilli/cirosantilli.github.io / myfunc

Function myfunc

typescript/functionOptions.ts:8–24  ·  view source on GitHub ↗
(
  {
    myInt,
    myString,
    // We can also set defaults here directly which is nice.
    myString2='def',
  }: {
    myInt: number;
    myString?: string;
    // When using this type of interface, we are still forced to explicitly
    // give the type here again even though // it could in principle be deduced
    // from the default.
    myString2?: string;
  }
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

functionOptions.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected