function isFoundationType()

in src/objc-import-utils.ts [83:93]


function isFoundationType(typeName: string): boolean {
  // NSLayoutAttribute is NS-prefixed, but is part of UIKit.
  //
  // TODO(natesm) can we just remove this entirely? There are other
  // NS types outside of Foundation that this can break on.
  return (
    typeName.indexOf('NS') === 0 &&
    typeName != 'NSLayoutAttribute' &&
    typeName != 'NSTextAlignment'
  );
}