Selaa lähdekoodia

add: Typescript setup doc page

Hassan Muhamad 5 vuotta sitten
vanhempi
commit
e7e69b1fce
1 muutettua tiedostoa jossa 52 lisäystä ja 0 poistoa
  1. 52 0
      docs/manual/ar/introduction/Typescript-setup.html

+ 52 - 0
docs/manual/ar/introduction/Typescript-setup.html

@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html lang="en">
+	<head>
+		<meta charset="utf-8">
+		<base href="../../../" />
+		<script src="list.js"></script>
+		<script src="page.js"></script>
+		<link type="text/css" rel="stylesheet" href="page.css" />
+		<style>
+			h1,
+			h2,
+			h3,
+			h4,
+			p {
+				direction: rtl !important;
+			}
+		</style>
+	</head>
+	<body>
+		<h1>Typescript إعدادات</h1>
+
+		<p>
+			three.js هي مكتبة قائمة على JavaScript. ومع ذلك ، من الممكن استخدامه في مشروع TypeScript ، حيث تعرض المكتبة [link:https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html Declaration Files] ملفات التصريح (ملفات * d.ts *).
+		</p>
+
+		<p>
+			الحد الأدنى من التكوين المطلوب لكي يتمكن برنامج التحويل البرمجي TypeScript من
+			اكتشف أنواع three.js.
+			<br>
+			ستحتاج إلى ضبط الخيار [link:https://www.typescriptlang.org/docs/handbook/module-resolution.html moduleResolution] على *node* ، وخيار [link:https://www.typescriptlang.org/docs/handbook/compiler-options.html target] على *es6* أو  ما هو أحدث.
+		</p>
+
+		<code>
+		// Example of minimal `tsconfig.json` file
+		{
+			"compilerOptions": {
+				"target": "es6",
+				"moduleResolution": "node",
+			},
+			"include": [ "./src/**/*.ts" ],
+		}
+		</code>
+
+		<p>
+			ملاحظة: اعتبارًا من اليوم ، ليس من الممكن استخدام كتابة three.js بدون استخدام هذين الخيارين.
+		</p>
+
+		<p>
+			ملاحظة: يحدث أن بعض التصريحات غير صحيحة و / أو مفقودة. تُعد المساهمة في ملفات التصريح مفيدة حقًا للمجتمع ، مما يجعل كتابات three.js أفضل وأكثر دقة.
+		</p>
+	</body>
+</html>