Typescript Interface Default Function