Use foreign import, not extern. Add foreign import member syntax