packageDocumentation module preferred import { User } from "../models/users/types" ; import q from './q' ; /**
 * URL of the authentication API
 */ export const URL = "https://jsonplaceholder.typicode.com/users/1" ; /**
 * Mandatory parameters sent to the authentication API
 */ export type Params = { username : string ; password : string ; } ; param _params export const fetchLogin = ( _params ) => fetch ( "https://jsonplaceholder.typicode.com/users/1" ) ; param params export const fetchUser = async ( params ) => q ( User ) ( ( ) => fetchLogin ( params ) ) ;