IMA SDK-এর সাথে TypeScript ব্যবহার করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টাইপস্ক্রিপ্ট একটি দৃঢ়ভাবে টাইপ করা, অবজেক্ট-ওরিয়েন্টেড প্রোগ্রামিং ভাষা যা জাভাস্ক্রিপ্টে কম্পাইল করে। টাইপস্ক্রিপ্ট হল জাভাস্ক্রিপ্টের একটি সুপারসেট, এবং জাভাস্ক্রিপ্টের সমস্ত বৈশিষ্ট্য এবং ঐচ্ছিক স্ট্যাটিক টাইপিং সমর্থন করে। টাইপস্ক্রিপ্ট টুলিং বাগগুলি সনাক্ত করতে এবং প্রতিরোধ করতে সাহায্য করতে পারে যা আপনি প্লেইন জাভাস্ক্রিপ্টে লক্ষ্য করবেন না।
শুরু করুন
DefinitelyTyped হল একটি ওপেন সোর্স প্রজেক্ট যা IMA SDK লাইব্রেরি সহ অনেক প্যাকেজের জন্য টাইপ ডিক্লেয়ারেশন ফাইলের ভান্ডার বজায় রাখে। আপনি @types/google_interactive_media_ads_types প্যাকেজ থেকে npm সহ IMA প্রকারগুলি ইনস্টল করতে পারেন।
npm install --save-dev @types/google_interactive_media_ads_types
ইনস্টলেশনের পরে, আপনার নিজের কোডে google.ima
অবজেক্ট দ্বারা উন্মোচিত সমস্ত প্রকারের অ্যাক্সেস রয়েছে৷ এছাড়াও আপনি কোড সমাপ্তির সুবিধা নিতে পারেন এবং IMA পদ্ধতি এবং বৈশিষ্ট্যগুলির জন্য সামগ্রী সহায়তার সুবিধা নিতে পারেন সোর্স কোড সম্পাদকের যে বৈশিষ্ট্যগুলি রয়েছে, উদাহরণস্বরূপ, ভিজ্যুয়াল স্টুডিও কোড ।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eTypeScript is a strongly typed, object-oriented programming language that compiles to JavaScript and supports all of JavaScript's features plus optional static typing.\u003c/p\u003e\n"],["\u003cp\u003eTypeScript tooling helps in detecting and preventing bugs that might go unnoticed in plain JavaScript.\u003c/p\u003e\n"],["\u003cp\u003eDefinitelyTyped is an open-source project containing type declaration files for various packages, including the IMA SDK library.\u003c/p\u003e\n"],["\u003cp\u003eInstalling the IMA types using npm from the @types/google-interactive-media-ads package gives you access to all types exposed by the google.ima object.\u003c/p\u003e\n"],["\u003cp\u003eAfter installation, source code editors with features like code completion and content assist can be used to take full advantage of IMA methods and properties.\u003c/p\u003e\n"]]],[],null,["# Use TypeScript with the IMA SDK\n\n[TypeScript](//www.typescriptlang.org/) is a strongly typed, object-oriented\nprogramming language that compiles to JavaScript. TypeScript is a superset of\nJavaScript, and supports all of JavaScript's features plus optional\n[static typing](//en.wikipedia.org/wiki/Type_system#STATIC).\n[TypeScript tooling](http://www.typescriptlang.org/docs/handbook/2/basic-types.html#types-for-tooling)\ncan help detect and prevent bugs that you might not notice in plain JavaScript.\n\nGet started\n-----------\n\n[DefinitelyTyped](//github.com/DefinitelyTyped/DefinitelyTyped) is an open\nsource project that maintains a repository of type\n[declaration files](//www.typescriptlang.org/docs/handbook/declaration-files/introduction.html)\nfor many packages, including the IMA SDK library. You can install the IMA types\nwith [npm](//docs.npmjs.com/about-npm) from the\n[@types/google_interactive_media_ads_types](//www.npmjs.com/package/@types/google_interactive_media_ads_types)\npackage. \n\n npm install --save-dev @types/google_interactive_media_ads_types\n\nAfter installation, you have access to all of the types exposed by the\n[`google.ima`](/interactive-media-ads/docs/sdks/html5/client-side/reference/ts)\nobject in your own code. You can also take advantage of code completion and\ncontent assist for IMA methods and properties in source code editors that have\nthose features, for example, [Visual Studio Code](https://code.visualstudio.com/docs/languages/typescript)."]]