personal-infocontacts

___.jsx

waiting...

select a file to open code

// Code snippet showcase:

profile

@abdullah-al-mridul

Created 5 months ago


function initializeModelChunk<T>(chunk: ResolvedModelChunk): T {
  const value: T = parseModel(chunk._response, chunk._value);
  const initializedChunk: InitializedChunk<T> = (chunk: any);
  initializedChunk._status = INITIALIZED;
  initializedChunk._value = value;
  return value;
}
      
profile

@abdullah-al-mridul

Created 3 months ago


export function parseModelTuple(
  response: Response,
  value: {+[key: string]: JSONValue} | $ReadOnlyArray<JSONValue>,
): any {
  const tuple: [mixed, mixed, mixed, mixed] = (value: any);
      
profile

@abdullah-al-mridul

Created 3 months ago


function add(a: number, b: number): number {
  const sum: number = a + b;
  return sum;
}

const result: number = add(5, 3);
console.log(result);
   
find me in: