export const fetch = ( input , init ? ) : Promise < Response > => { const req = new Request ( input , Object . assign < RequestInit , RequestInit > ( { credentials : "same-origin" , } , init ) ) ; return self . fetch ( req ) ; } ;